import App from '../page/App'
import Detail from '../page/Detail'
import List from '../page/List'
import My from '../page/My'
import Home from '../page/Home'
import Login from '../page/Login'


const page = [
    {
        from: '/',
        to: "/app"
    },
    {
        path: '/app',
        component: App,
        children: [
            {
                from:'/app',
                to: '/app/home'
            }
            ,
            {
                path: '/app/home',
                component: Home
            },
            {
                path: '/app/list',
                component: List
            },
            {
                path: '/app/my',
                component: My
            }
        ]
    }
    ,
    {
        path: '/detail/:id',
        component: Detail
    }
    ,
    {
        path: '/login',
        component: Login
    }
]

export default page